Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed defer attribute from the avo.base.css stylesheet tag #3635

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

iainbeeston
Copy link
Contributor

Description

When you load a page in avo the html <link> tag to load avo.base.css it ha a defer attribute on it. defer isn't a valid attribute for a <link> tag - it is for <script> tags and having it here is invalid html. I think this is also causing loading issues in google chrome for me when I redirect from avo to my main app.

I've removed defer from the <link> tag. This should make the html valid and shouldn't have any bad effects (as it shouldn't be used on a <link> tag anyway).

Fixes # (issue)

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Screenshots & recording

Manual review steps

  1. Check that the css for avo still loads correctly.

Manual reviewer: please leave a comment with output from the test if that's the case.

`defer` isn't a valid attribute for a `<link>` tag - it is for
`<script>` tags and having it here is invalid html. I think this is also
causing loading issues in google chrome for me when I redirect from avo
to my main app.

I've removed defer from the `<link>` tag. This should make the html
valid and shouldn't have any bad effects (as it shouldn't be used on a
`<link>` tag anyway).
Copy link

codeclimate bot commented Feb 3, 2025

Code Climate has analyzed commit ed562bb and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Contributor

@Paul-Bob Paul-Bob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thank you @iainbeeston

@Paul-Bob Paul-Bob added the Fix label Feb 4, 2025
@Paul-Bob Paul-Bob merged commit 6373da3 into avo-hq:main Feb 4, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants